<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css?1" rel="stylesheet">
    <link href="/public/simpleboot/css/simplebootadmin.css?8" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
	<link href="/public/css/other.css?<?php echo time(); ?>" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
	//全局变量
	var GV = {
	    ROOT: "/",
	    WEB_ROOT: "/",
	    JS_ROOT: "public/js/",
	    APP:'<?php echo (MODULE_NAME); ?>'/*当前应用名*/
	};
	</script>
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/jquery.quicksearch.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
    <script>
    	$(function(){
    		$("[data-toggle='tooltip']").tooltip();
    	});
    </script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li ><a href="<?php echo U('AdminCard/index');?>">卡片列表</a></li>

			<li class="active"><a href="javascript:;" target="_self">金额记录</a></li>
		</ul>
        <form class="well form-search" id="form_search" method="post" action="<?php echo U('AdminCard/price_detail');?>">
			<input type="hidden" name="s_download" id="s_download" value="0"/>
			<input type="hidden" name="id" id="id" value="<?php echo ($card["id"]); ?>"/>
			<a class="btn btn-primary" style="float: right;margin-right:15px;margin-bottom:10px;" href="javascript:downloadExcel(1);">导出报表</a>
			<table class="table table-bordered">
				<tr>
					<td colspan="4">
						卡号：<?php echo ($card["number"]); ?>
					</td>
				</tr>
				<tr>
					<td >充值总金额:<?php echo ($recharge_price); ?></td>
					<td >消费总金额:<?php echo ($sale_price); ?></td>
					<td >退款总金额:<?php echo ($refund_price); ?></td>
					<td >当前余额:<?php echo ($card["balance"]); ?></td>
				</tr>
			</table>

        </form>

		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">账单号</th>
						<th width="50">金额</th>
						<th width="50">操作后余额	</th>
						<th width="50">类型	</th>
						<th width="100">操作时间</th>
					</tr>
				</thead>
				<?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr>
					<td><b><?php echo ($vo["number"]); ?></b></td>
					<td><?php echo ($vo["price"]); ?></td>
					<td><?php echo ($vo["after_balance"]); ?></td>
					<td><?php echo ($vo["remark"]); ?></td>

					<td><?php echo date("Y-m-d H:i:s",$vo['create_time']);?></td>
				</tr><?php endforeach; endif; ?>

			</table>

		</form>
	</div>
	<script src="/public/js/common.js?1"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "<?php echo U('AdminCard/index',$formget);?>";
			}
		}

	</script>
</body>
</html>